package com.lechuang.system.feign;

import com.lechuang.common.result.Result;
import com.lechuang.system.vo.TenantListVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "mall-system-${spring.profiles.active}")
public interface TenantInfoFeign {

    @PostMapping("/tenant/getByNameOrPhone")
    Result<List<TenantListVO>> getByNameOrPhone(@RequestParam("selectText") String selectText);
}
